.class Lcom/glympse/android/glympse/Glympse$ShowMenuJob;
.super Lcom/glympse/platform/GRunnable;
.source "Glympse.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/Glympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "ShowMenuJob"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/Glympse;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympse/Glympse;)V
    .locals 0
    .parameter

    .prologue
    .line 1493
    iput-object p1, p0, Lcom/glympse/android/glympse/Glympse$ShowMenuJob;->this$0:Lcom/glympse/android/glympse/Glympse;

    invoke-direct {p0}, Lcom/glympse/platform/GRunnable;-><init>()V

    return-void
.end method


# virtual methods
.method public Run()V
    .locals 3

    .prologue
    .line 1505
    :try_start_0
    sget-object v1, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    iget-boolean v1, v1, Lcom/glympse/android/glympseservice/GlympseService;->m_fPerformedMenuPopup:Z

    if-nez v1, :cond_0

    sget-object v1, Lcom/glympse/android/glympse/Glympse$EViews;->Map:Lcom/glympse/android/glympse/Glympse$EViews;

    iget-object v2, p0, Lcom/glympse/android/glympse/Glympse$ShowMenuJob;->this$0:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v2}, Lcom/glympse/android/glympse/Glympse;->GetCurrentEView()Lcom/glympse/android/glympse/Glympse$EViews;

    move-result-object v2

    if-ne v1, v2, :cond_0

    .line 1508
    sget-object v1, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    const/4 v2, 0x1

    iput-boolean v2, v1, Lcom/glympse/android/glympseservice/GlympseService;->m_fPerformedMenuPopup:Z

    .line 1511
    iget-object v1, p0, Lcom/glympse/android/glympse/Glympse$ShowMenuJob;->this$0:Lcom/glympse/android/glympse/Glympse;

    invoke-static {v1}, Lcom/glympse/platform/Reflection$_Activity;->IsActionBarVisible(Landroid/app/Activity;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 1513
    iget-object v1, p0, Lcom/glympse/android/glympse/Glympse$ShowMenuJob;->this$0:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/Glympse;->openOptionsMenu()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1521
    :cond_0
    :goto_0
    return-void

    .line 1517
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1519
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method
